﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <div ng-app="" ng-init="quantity=1;cost=5">
        <p>总价：{{quantity*cost}}</p>

        <p>总价：<span ng-bind="quantity * cost"></span></p>
    </div>


    <script type="text/javascript" src="Scripts/angular.js"></script>
</body>
</html>